Skip to content

fix: use max_completion_tokens for OpenAI #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

gombosg
Copy link

@gombosg gombosg commented Aug 8, 2025

fixes #100

Looks like maxTokens is deprecated in favor of maxCompletionTokens and they are the same thing.

This PR won't change any interfaces or introduce anything new, it doesn't even help with GPT-5 compatibility, it just allows the models to run and then clients can figure out which fields they'd like to use with the new model.

@peterbanda
Copy link
Member

Thanx for the effort! In general, max_tokens is commonly accepted by other providers so must be supported. Can be revisited later on as the API evolves.

@peterbanda peterbanda closed this Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPT-5 fails with maxTokens parameter
2 participants